﻿using BasicInformation.ErrorCode;
using MediatR;
using SqlSugar;

namespace BasicInformation.ApiWrite.Application.Command.Carrier
{
    public class UpdateCarrierCommand:IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 承运商Id(主键标识)
        /// </summary>
        
        public int CarrierId { get; set; }
        /// <summary>
        /// 承运商编号
        /// </summary>

        public string CarrierCode { get; set; }
        /// <summary>
        /// 承运商名称
        /// </summary>
        [SugarColumn(Length = 50)]
        //[Required(ErrorMessage = "用户名不能为空")] // 需引用System.ComponentModel.DataAnnotations
        //[StringLength(50, ErrorMessage = "用户名长度不能超过50")], IsRequired = true
        public string CarrierName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(Length = 100)]
        public string? CarrierRemark { get; set; }
    }
}
